home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / umddvi / lib / makefile < prev    next >
Makefile  |  1990-10-01  |  4KB  |  141 lines

  1. #
  2. # Copyright (c) 1987 University of Maryland Department of Computer Science.
  3. # All rights reserved.  Permission to copy for any purpose is hereby granted
  4. # so long as this copyright notice remains intact.
  5. #
  6. # Makefile for ctex/lib (C-TeX library routines)
  7. #
  8. # $Header: Makefile,v 1.2 87/06/16 18:27:29 chris Exp $
  9. #
  10. DESTDIR=
  11. # Alas, -R makes ALL initialised variables read-only, and we cannot
  12. # use it on font files; hence, FCFLAGS.
  13. CFLAGS=    -O -R -I../h
  14. FCFLAGS=-O -I../h
  15.  
  16. # This will be overridden by ../Makefile, but just in case...
  17. CONFFILE=/usr/local/lib/tex/fontdesc
  18.  
  19. # 4.1BSD Vax:
  20. #ASSRC=    bcopy.s bzero.s
  21. #ASOBJ=    bcopy.o bzero.o
  22. #MISCC=    getopt.c
  23. #MISCO=    getopt.o
  24.  
  25. # 4.2BSD Vax:
  26. #ASSRC=
  27. #ASOBJ=
  28. #MISCC=    getopt.c
  29. #MISCO=    getopt.o
  30.  
  31. # 4.2BSD Sun:
  32. #ASSRC=
  33. #ASOBJ=
  34. #MISCC=
  35. #MISCO=
  36.  
  37. # 4.2BSD Pyramid:
  38. #ASSRC=
  39. #ASOBJ=
  40. #MISCC=    getopt.c
  41. #MISCO=    getopt.o
  42.  
  43. # 4.3BSD Vax:
  44. ASSRC=
  45. ASOBJ=
  46. MISCC=
  47. MISCO=
  48.  
  49. # all
  50. CSRC=    conv.c dviclass.c error.c findpost.c fio.c font.c font_subr.c \
  51.     gfclass.c gripes.c magfactor.c rotate.c scaletfm.c scanpost.c \
  52.     search.c seek.c split.c strsave.c tfm.c ${MISCC}
  53. COBJ=    conv.o dviclass.o error.o findpost.o fio.o font.o font_subr.o \
  54.     gfclass.o gripes.o magfactor.o rotate.o scaletfm.o scanpost.o \
  55.     search.o seek.o split.o strsave.o tfm.o ${MISCO}
  56. FSRC=    gffont.c pkfont.c pxlfont.c tfmfont.c
  57. FOBJ=    gffont.o pkfont.o pxlfont.o tfmfont.o
  58.  
  59. OBJS=    ${COBJ} ${ASOBJ} ${FOBJ}
  60.  
  61. all: lib.a
  62.  
  63. lib.a: ${OBJS}
  64.     ar cr lib.a ${OBJS}
  65.     ranlib lib.a
  66.  
  67. # no installation is necessary; this entry is just for standardisation
  68. install:
  69.  
  70. clean:
  71.     rm -f *.o lib.a
  72.  
  73. depend: ${CSRC} ${FSRC}
  74.     ${CC} -M ${CFLAGS} ${CSRC} ${FSRC} | \
  75.         awk '{ if ($$1 != prev) { if (rec != "") print rec; \
  76.         rec = $$0; prev = $$1; } \
  77.         else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
  78.         else rec = rec " " $$2 } } \
  79.         END { print rec }' >makedep
  80.     echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
  81.     echo '$$r makedep' >>eddep
  82.     echo 'w' >>eddep
  83.     cp Makefile Makefile.bak
  84.     ed - Makefile <eddep
  85.     rm eddep makedep
  86.     echo '# DEPENDENCIES MUST END AT END OF FILE' >>Makefile
  87.     echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >>Makefile
  88.     echo '# see make depend above' >>Makefile
  89.  
  90. #pxl.o:
  91. #    ${CC} ${CFLAGS} -c -DPXLPATH=\"${PXLPATH}\" pxl.c
  92.  
  93. # font.o needs to know where to find the font description file
  94. font.o:
  95.     ${CC} ${CFLAGS} -c -DCONFFILE=\"${CONFFILE}\" font.c
  96.  
  97. # special rules for font objects
  98. ${FOBJ}:
  99.     ${CC} ${FCFLAGS} -c $*.c
  100.  
  101. # DO NOT DELETE THIS LINE -- make depend uses it
  102.  
  103. conv.o: conv.c ../h/types.h ../h/conv.h
  104. dviclass.o: dviclass.c ../h/dviclass.h
  105. error.o: error.c /usr/include/stdio.h /usr/include/varargs.h
  106. findpost.o: findpost.c /usr/include/stdio.h ../h/types.h ../h/dvicodes.h
  107. findpost.o: ../h/fio.h
  108. fio.o: fio.c /usr/include/stdio.h ../h/types.h ../h/fio.h
  109. font.o: font.c /usr/include/stdio.h /usr/include/errno.h ../h/types.h
  110. font.o: ../h/conv.h ../h/font.h
  111. font_subr.o: font_subr.c ../h/font.h ../h/types.h
  112. gfclass.o: gfclass.c ../h/gfclass.h
  113. gripes.o: gripes.c /usr/include/stdio.h ../h/types.h
  114. magfactor.o: magfactor.c
  115. rotate.o: rotate.c ../h/font.h ../h/types.h
  116. scaletfm.o: scaletfm.c ../h/types.h ../h/font.h
  117. scanpost.o: scanpost.c /usr/include/stdio.h ../h/types.h ../h/dvicodes.h
  118. scanpost.o: ../h/fio.h ../h/postamble.h
  119. search.o: search.c ../h/types.h ../h/search.h
  120. seek.o: seek.c /usr/include/stdio.h /usr/include/sys/param.h
  121. seek.o: /usr/include/machine/machparam.h /usr/include/signal.h
  122. seek.o: /usr/include/sys/types.h /usr/include/sys/file.h
  123. seek.o: /usr/include/sys/stat.h
  124. split.o: split.c /usr/include/ctype.h
  125. strsave.o: strsave.c
  126. tfm.o: tfm.c /usr/include/stdio.h ../h/types.h ../h/fio.h ../h/tfm.h
  127. gffont.o: gffont.c /usr/include/stdio.h /usr/include/sys/types.h
  128. gffont.o: /usr/include/sys/stat.h ../h/types.h ../h/font.h ../h/gfcodes.h
  129. gffont.o: ../h/gfclass.h ../h/num.h
  130. pkfont.o: pkfont.c /usr/include/stdio.h /usr/include/sys/types.h
  131. pkfont.o: /usr/include/sys/stat.h ../h/types.h ../h/font.h ../h/num.h
  132. pxlfont.o: pxlfont.c /usr/include/stdio.h /usr/include/sys/types.h
  133. pxlfont.o: /usr/include/sys/stat.h /usr/include/errno.h ../h/types.h
  134. pxlfont.o: ../h/font.h ../h/fio.h
  135. tfmfont.o: tfmfont.c /usr/include/stdio.h /usr/include/sys/types.h
  136. tfmfont.o: /usr/include/sys/stat.h ../h/types.h ../h/conv.h ../h/font.h
  137. tfmfont.o: ../h/tfm.h
  138. # DEPENDENCIES MUST END AT END OF FILE
  139. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  140. # see make depend above
  141.